package com.x86.domain;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author 风亦未止
 * @date 2022/3/25 16:20
 */
@ApiModel(value = "record")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "record")
public class Record implements Serializable {
    /**
     * 操作记录id
     */
    @TableId(value = "record_id", type = IdType.INPUT)
    @ApiModelProperty(value = "操作记录id")
    private Integer recordId;

    /**
     * 操作员id
     */
    @TableField(value = "operator_id")
    @ApiModelProperty(value = "操作员id")
    private String operatorId;

    /**
     * 机器id
     */
    @TableField(value = "cid")
    @ApiModelProperty(value = "机器id")
    private String cid;

    @TableField(fill = FieldFill.INSERT,value = "`time`")
    @ApiModelProperty(value = "操作的时间")
    private Date time;

    private static final long serialVersionUID = 1L;

    public static final String COL_RECORD_ID = "record_id";

    public static final String COL_OPERATOR_ID = "operator_id";

    public static final String COL_CID = "cid";

    public static final String COL_TIME = "time";
}